<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!doctype html>
<html>
<head>
<title>노원창일교회 ADMIN - 글수정</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link href="/NowonChangilChurch_Admin/assets/css/board.css" rel="stylesheet" type="text/css">
<script type="text/javascript"
	src="/NowonChangilChurch_Admin/ckeditor/ckeditor.js"></script>
	<script type="text/javascript" src="/NowonChangilChurch_Admin/ckfinder/ckfinder.js"></script>
</head>
<body>
	<div id="container">
		<%@ include file="/views/common/header.jsp"%>
		<c:choose>
		<c:when test="${authUser != null }">
		<div id="content">
			<div id="board">
				<form id="modifyfrom" name="modifyformform" method="post"
					action="/NowonChangilChurch_Admin/board">
					<input type="hidden" name="a" value="modify"> 
					<input type="hidden" name="boardId" value="<%=request.getParameter("boardId")%>">
					<input type="hidden" name="articleId" value="${article.id}">
					<table>
						<tr>
							<td align="left"><input type="text" id="title" name="title"
												value="${article.title}"></td>
						</tr>
						<tr>
							<td>
							<textarea class="ckeditor" id="editor" name="editor">
							${article.content}
							</textarea>
								<script type="text/javascript">
									var editor = CKEDITOR
											.replace(
													"editor",
													{
														//ckeditor에서 custom configuration 파일을 사용하려면 webroot까지 써줘야한다.
														customConfig : '/NowonChangilChurch_Admin/ckeditor/config.js'
													});
								</script>﻿
								
								</td>
						</tr>
						<tr>
							<td><input type="submit" value="수정하기"></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		</c:when>
		</c:choose>
		<%@ include file="/views/common/navigation.jsp"%>
		<%@ include file="/views/common/footer.jsp"%>
	</div>
</body>
</html>